export default {
  /**
   * @description token在Cookie中存储的天数，默认1天
   */
  cookieExpires: 1,
  /**
   * @description 单点服务
   */
  sso: {
    dev: {
      SESSION_STORAGE_TOKEN_KEY: 'sso-token', // 浏览器存储的键
      REQUEST_HEADER_TOKEN_KEY: 'sso_sessionid', // 固定值，只能为该值
      REQUEST_SPLICING_SSO_BASE_URL:
        'http://localhost:8090/sso/oauth/authorize?response_type=code&client_id=elead_learning&redirect_uri=',
      REQUEST_SPLICING_SSO_LOGOUT_URL:
        'http://localhost:8090/sso/oauth/logout?response_type=code&client_id=elead_learning&redirect_uri=',
      REQUEST_LOCALHOST_URL: 'http://localhost:9528/#/',
      REQUEST_SPLICING_SSO_CODE_CALLBACK:
        'http://localhost:9528/#/codeCallback?redirect_uri=' // 登录成功回调
    },
    pro: {
      SESSION_STORAGE_TOKEN_KEY: 'sso-token',
      REQUEST_HEADER_TOKEN_KEY: 'sso_sessionid',
      REQUEST_SPLICING_SSO_BASE_URL:
        'http://sso.e-lead.cn/sso/oauth/authorize?response_type=code&client_id=elead_sso&redirect_uri=',
      REQUEST_SPLICING_SSO_LOGOUT_URL:
        'http://sso.e-lead.cn/sso/oauth/logout?response_type=code&client_id=elead_sso&redirect_uri=',
      REQUEST_LOCALHOST_URL: 'http://sso.e-lead.cn/#/',
      REQUEST_SPLICING_SSO_CODE_CALLBACK:
        'http://sso.e-lead.cn/#/codeCallback?redirect_uri='
    }
  }
}